-
Notifications
You must be signed in to change notification settings - Fork 10
chore: update playwright in ci to run only on aria changes #4452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🔭🐙🐈 Test this branch here: https://db-ux-design-system.github.io/core-web/review/chore-run-tests-only-if-aria-changed |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the Playwright testing infrastructure to separate different types of accessibility tests and only run aria-related tests when aria changes are detected. The key changes include splitting consolidated test files into separate test suites by test type (visual snapshots, aria snapshots, axe-core, and a11y-checker) and updating CI workflows to run tests conditionally based on detected changes.
- Separate test files by test type for better organization and selective execution
- Update CI workflows to run aria-related tests only when aria changes are detected
- Add new Playwright configuration files for different test types
- Update package.json scripts across all showcases to support the new test structure
Reviewed Changes
Copilot reviewed 146 out of 151 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
showcases/*/package.json | Add separate npm scripts for each test type (aria-snapshots, visual-snapshots, axe-core, a11y-checker) |
showcases/playwright.*.ts | New Playwright configuration files for different test types with specific test matching patterns |
showcases/e2e//.spec.ts | Split existing combined test files into separate files by test type |
.github/workflows/*.yml | Update CI workflows to run tests conditionally and use new test scripts |
scripts/github/snapshot-changes/*.ts | Add utility scripts to detect snapshot changes for conditional test execution |
…if-aria-changed # Conflicts: # .github/workflows/02-e2e-showcases.yml # __snapshots__/custom-select/showcase/webkit/DBCustomSelect-should-match-screenshot-1/DBCustomSelect-should-match-screenshot.png # package-lock.json # showcases/e2e/switch/switch-axe-core.spec.ts # showcases/e2e/tabs/tabs-axe-core.spec.ts # showcases/react-showcase/package.json
Proposed changes
Types of changes
Further comments